import request from './request';

export function getConsumptions() {
  return request.get('/consumptions');
}

export function addConsumption(data) {
  return request.post('/consumptions', data);
}

export function updateConsumption(data) {
  return request.put('/consumptions', data);
}

export function deleteConsumption(id) {
  return request.delete(`/consumptions/${id}`);
} 